#include <stdio.h>



/* ----------------------------------- */
/*     Definition du type pixel        */
/* ----------------------------------- */


struct sPixel
{
  unsigned char red;
  unsigned char green;
  unsigned char blue;
};
typedef struct sPixel pixel;




/* -------------------------------------------------------------- */
/*     Declarations des procedures que vous pouvez appeler        */
/* (deja ecrites, code disponible pour information apres le main) */
/* -------------------------------------------------------------- */


/* Preconditions : 
   Postconditions : un nouveau fichier appele comme la chaine contenue dans NomFic
   est cree. Son contenu est l'entete d'un fichier BMP (24-bit par pixel, non compresse)
   pour une image de taille largeur x hauteur. */
void creerFichierAvecEnteteBMP(const char nomFic[], unsigned int largeur, unsigned int hauteur);






/* -------------------------- */
/*     Completez le main      */
/* -------------------------- */



int main()
{
  int i,j;
  FILE * fic;
  char nomFichier[] = "mystere.bmp";
  unsigned int hauteur = 48;
  unsigned int largeur = 48;
  unsigned int padding;
  unsigned char monChar;

  pixel monTab[] = {     \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 112}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {112, 112, 112}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 112}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {112, 112, 112}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 112}, {  0,   0,   0}, \
    {  1,   6,   9}, { 13,  49,  76}, { 13,  49,  76}, { 13,  49,  76}, \
    { 13,  49,  76}, { 13,  49,  76}, { 13,  49,  76}, { 13,  49,  76}, \
    { 62, 121, 139}, { 62, 121, 139}, { 27,  53,  61}, {  0,   0,   0}, \
    {  7,  15,  17}, { 62, 121, 139}, { 62, 121, 139}, {  7,  15,  17}, \
    {  0,   0,   0}, {112, 112, 112}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 112}, {  0,   0,   0}, \
    {  7,  15,  17}, { 23,  87, 135}, { 24,  88, 136}, { 24,  88, 136}, \
    { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, \
    {112, 216, 248}, {112, 216, 248}, { 48,  94, 108}, {  0,   0,   0}, \
    { 13,  26,  30}, {112, 216, 248}, {112, 216, 248}, { 13,  26,  30}, \
    {  0,   0,   0}, {112, 112, 112}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {114, 122, 128}, {  7,  15,  17}, \
    {  5,  20,  31}, { 23,  87, 135}, { 24,  88, 136}, { 23,  87, 135}, \
    { 23,  87, 135}, { 24,  88, 136}, { 23,  87, 135}, { 23,  87, 135}, \
    { 97, 188, 216}, { 97, 188, 216}, { 44,  88, 104}, {  7,  15,  17}, \
    { 14,  33,  42}, { 97, 188, 216}, { 97, 188, 216}, { 41,  54,  58}, \
    { 32,  32,  32}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {123, 154, 177}, { 23,  87, 135}, \
    { 23,  87, 135}, { 23,  87, 135}, { 24,  88, 136}, { 23,  87, 135}, \
    { 23,  87, 135}, { 24,  88, 136}, { 23,  87, 135}, { 23,  87, 135}, \
    {  0,   0,   0}, {  0,   0,   0}, { 13,  49,  76}, { 23,  87, 135}, \
    { 20,  76, 118}, {  0,   0,   0}, {  0,   0,   0}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {134, 167, 191}, { 23,  87, 135}, \
    { 23,  87, 135}, { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, \
    { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, \
    {  0,   0,   0}, {  0,   0,   0}, { 13,  49,  76}, { 24,  88, 136}, \
    { 20,  76, 118}, {  0,   0,   0}, {  0,   0,   0}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 52, 108, 150}, { 52, 108, 150}, {143, 172, 195}, {220, 228, 234}, \
    {220, 228, 234}, {220, 228, 234}, {220, 228, 234}, { 52, 108, 150}, \
    { 23,  87, 135}, { 73, 103, 108}, {136, 122,  72}, {136, 122,  72}, \
    {133, 112,  56}, {133, 112,  56}, {126,  78,  49}, {122,  52,  44}, \
    {123,  60,  46}, {133, 112,  56}, {133, 112,  56}, {144,  77,  58}, \
    {144,  77,  58}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 23,  87, 135}, { 24,  88, 136}, {149, 177, 198}, {248, 248, 248}, \
    {247, 247, 247}, {247, 247, 247}, {247, 247, 247}, { 52, 108, 150}, \
    { 23,  87, 135}, { 80, 105, 104}, {151, 127,  63}, {151, 127,  63}, \
    {152, 128,  64}, {151, 127,  63}, {142,  82,  45}, {136,  48,  32}, \
    {137,  57,  35}, {151, 127,  63}, {152, 128,  64}, {137,  57,  35}, \
    {136,  48,  32}, {189, 142, 132}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 24,  88, 136}, { 24,  88, 136}, {149, 177, 198}, {248, 248, 248}, \
    {248, 248, 248}, {248, 248, 248}, {248, 248, 248}, { 52, 108, 150}, \
    { 23,  87, 135}, { 80, 105, 104}, {152, 128,  64}, {152, 128,  64}, \
    {152, 128,  64}, {152, 128,  64}, {146, 102,  53}, {142,  82,  45}, \
    {146,  93,  51}, {173, 166,  92}, {173, 166,  92}, {165, 127,  76}, \
    {165, 127,  76}, {179, 137, 108}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 23,  87, 135}, { 23,  87, 135}, {149, 177, 198}, {248, 248, 248}, \
    {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, { 52, 108, 150}, \
    { 23,  87, 135}, { 80, 105, 104}, {151, 127,  63}, {151, 127,  63}, \
    {152, 128,  64}, {151, 127,  63}, {151, 127,  63}, {152, 128,  64}, \
    {157, 138,  71}, {199, 215, 127}, {200, 216, 128}, {199, 215, 127}, \
    {199, 215, 127}, {171, 142,  85}, {135,  47,  31}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 24,  88, 136}, { 24,  88, 136}, {149, 177, 198}, {248, 248, 248}, \
    {248, 248, 248}, {248, 248, 248}, {248, 248, 248}, { 52, 108, 150}, \
    { 24,  88, 136}, { 80, 105, 104}, {151, 128,  64}, {151, 128,  64}, \
    {152, 128,  64}, {152, 128,  64}, {152, 128,  64}, {152, 128,  64}, \
    {158, 139,  72}, {200, 216, 128}, {200, 216, 128}, {200, 216, 128}, \
    {200, 216, 128}, {171, 142,  85}, {136,  48,  32}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 23,  87, 135}, { 23,  87, 135}, {149, 177, 198}, {248, 248, 248}, \
    {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, {247, 247, 247}, \
    {247, 247, 247}, {149, 177, 198}, { 23,  87, 135}, { 23,  87, 135}, \
    {248, 248, 248}, {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, \
    {241, 243, 232}, {199, 215, 127}, {200, 216, 128}, {241, 243, 232}, \
    {248, 248, 248}, {198, 160, 153}, {135,  47,  31}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 23,  87, 135}, { 23,  87, 135}, {149, 177, 198}, {248, 248, 248}, \
    {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, {247, 247, 247}, \
    {247, 247, 247}, {149, 177, 198}, { 23,  87, 135}, { 23,  87, 135}, \
    {248, 248, 248}, {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, \
    {241, 243, 232}, {199, 215, 127}, {200, 216, 128}, {241, 243, 232}, \
    {248, 248, 248}, {198, 160, 153}, {135,  47,  31}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 10,  38, 104}, { 10,  38, 104}, { 73, 105, 149}, {121, 157, 184}, \
    {121, 157, 184}, {121, 157, 184}, {121, 157, 184}, {121, 157, 184}, \
    {121, 157, 184}, {110, 137, 145}, { 95, 110,  95}, { 95, 110,  95}, \
    {248, 248, 248}, {247, 247, 247}, {247, 247, 247}, {248, 248, 248}, \
    {241, 243, 232}, {199, 215, 127}, {200, 216, 128}, {241, 243, 232}, \
    {248, 248, 248}, {198, 160, 153}, {135,  47,  31}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  0,   0,  80}, {  0,   0,  80}, { 13,  49, 111}, { 24,  88, 136}, \
    { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, { 24,  88, 136}, \
    { 24,  88, 136}, { 80, 105, 104}, {152, 128,  64}, {152, 128,  64}, \
    {248, 248, 248}, {248, 248, 248}, {248, 248, 248}, {248, 248, 248}, \
    {241, 243, 232}, {200, 216, 128}, {200, 216, 128}, {241, 243, 232}, \
    {248, 248, 248}, {198, 160, 153}, {136,  48,  32}, {136,  48,  32}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  1,   1,  79}, {  1,   1,  79}, { 18,  46, 114}, { 32,  81, 140}, \
    { 32,  81, 140}, { 32,  81, 140}, { 32,  81, 140}, { 34,  84, 148}, \
    { 34,  84, 148}, { 86, 103, 112}, {151, 127,  63}, {151, 127,  63}, \
    {236, 233, 225}, {236, 233, 225}, {236, 233, 225}, {241, 243, 232}, \
    {236, 240, 219}, {199, 215, 127}, {200, 216, 128}, {229, 222, 209}, \
    {234, 223, 221}, {195, 154, 147}, {152,  77,  63}, {144,  77,  58}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  1,   1,  79}, {  1,   1,  79}, { 53,  22, 133}, { 96,  40, 176}, \
    { 95,  39, 175}, { 95,  39, 175}, { 96,  40, 176}, {109,  60, 238}, \
    {111,  63, 247}, {129,  92, 167}, {151, 127,  63}, {151, 127,  63}, \
    {152, 128,  64}, {152, 128,  64}, {179, 177, 100}, {200, 216, 128}, \
    {199, 215, 127}, {199, 215, 127}, {200, 216, 128}, {143,  68,  43}, \
    {136,  48,  32}, {194, 149, 141}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  0,   0,  80}, {  0,   0,  80}, { 53,  22, 133}, { 96,  40, 176}, \
    { 96,  40, 176}, { 96,  40, 176}, { 96,  40, 176}, {109,  60, 238}, \
    {112,  64, 248}, {129,  92, 167}, {152, 128,  64}, {152, 128,  64}, \
    {152, 128,  64}, {152, 128,  64}, {179, 177, 100}, {200, 216, 128}, \
    {200, 216, 128}, {200, 216, 128}, {200, 216, 128}, {144,  68,  43}, \
    {136,  48,  32}, {189, 142, 132}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {107, 101, 156}, { 11,   4,  91}, \
    { 22,   9, 102}, { 95,  39, 175}, { 96,  40, 176}, { 42,  79, 153}, \
    { 34,  84, 148}, { 37,  88, 139}, { 39,  92, 126}, { 39,  92, 126}, \
    { 39,  92, 126}, { 39,  92, 126}, { 43,  99, 131}, { 43,  99, 131}, \
    { 58,  99, 123}, {143,  68,  43}, {144,  68,  43}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 156}, {  0,   0,  80}, \
    { 11,   4,  91}, { 95,  39, 175}, { 96,  40, 176}, { 32,  81, 140}, \
    { 23,  87, 135}, { 24,  88, 136}, { 23,  87, 135}, { 23,  87, 135}, \
    { 24,  88, 136}, { 23,  87, 135}, { 24,  88, 136}, { 24,  88, 136}, \
    { 38,  82, 122}, {135,  47,  31}, {136,  48,  32}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, { 68,  82, 118}, { 10,  38, 104}, \
    { 17,  41, 111}, { 64,  61, 158}, { 64,  61, 158}, { 59,  93, 181}, \
    { 59,  98, 185}, { 59,  98, 185}, { 59,  98, 185}, { 59,  98, 185}, \
    { 59,  98, 185}, { 59,  98, 185}, { 33,  70, 123}, { 13,  49,  76}, \
    { 21,  46,  69}, { 76,  26,  17}, { 76,  26,  17}, {143, 132, 130}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  0,   0,   0}, {  0,   0,   0}, { 13,  49,  76}, { 24,  88, 136}, \
    { 23,  87, 135}, { 23,  87, 135}, { 24,  88, 136}, { 93, 108, 233}, \
    {103, 111, 247}, {104, 112, 248}, {103, 111, 247}, {103, 111, 247}, \
    {104, 112, 248}, {103, 111, 247}, { 45,  48, 108}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  0,   0,   0}, {  0,   0,   0}, { 13,  49,  76}, { 24,  88, 136}, \
    { 23,  87, 135}, { 23,  87, 135}, { 24,  88, 136}, { 93, 108, 233}, \
    {103, 111, 247}, {104, 112, 248}, {103, 111, 247}, {103, 111, 247}, \
    {104, 112, 248}, {103, 111, 247}, { 45,  48, 108}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, { 58,  62, 139}, {104, 112, 248}, \
    {104, 112, 248}, {104, 112, 248}, {104, 112, 248}, {181, 196, 248}, \
    {192, 208, 248}, {108, 117, 139}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, { 58,  62, 139}, {104, 112, 248}, \
    {103, 111, 247}, {103, 111, 247}, {104, 112, 248}, {180, 195, 247}, \
    {191, 207, 247}, {108, 117, 139}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {112, 112, 151}, { 63,  63,  87}, {  0,   0,   0}, {  0,   0,   0}, \
    { 58,  62, 139}, { 58,  62, 139}, {111, 120, 200}, {153, 165, 248}, \
    {139, 151, 230}, { 45,  48, 108}, { 45,  48, 108}, {173, 188, 230}, \
    {191, 207, 247}, {155, 168, 200}, {108, 117, 139}, {108, 117, 139}, \
    {  0,   0,   0}, {  0,   0,   0}, { 32,  35,  78}, { 58,  62, 139}, \
    { 58,  62, 139}, { 58,  62, 139}, { 58,  62, 139}, { 58,  62, 139}, \
    { 58,  62, 139}, { 58,  62, 139}, { 58,  62, 139}, { 58,  62, 139}, \
    { 58,  62, 139}, { 58,  62, 139}, { 93, 114, 161}, {121, 157, 184}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  0,   0,  80}, {  0,   0,  45}, {  0,   0,   0}, {  0,   0,   0}, \
    {104, 112, 248}, {104, 112, 248}, {153, 165, 248}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, {168, 182, 217}, \
    {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, \
    {  0,   0,   0}, {  0,   0,   0}, { 58,  62, 139}, {104, 112, 248}, \
    {104, 112, 248}, {104, 112, 248}, {104, 112, 248}, {104, 112, 248}, \
    {104, 112, 248}, {104, 112, 248}, {104, 112, 248}, {104, 112, 248}, \
    {104, 112, 248}, {104, 112, 248}, { 59,  98, 185}, { 24,  88, 136}, \
    { 52, 108, 150}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  1,   1,  79}, {  5,   6,  58}, { 13,  14,  31}, { 13,  14,  31}, \
    { 93, 108, 233}, { 93, 108, 233}, {149, 164, 241}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, {146, 159, 189}, \
    {167, 181, 216}, {178, 193, 230}, {191, 207, 247}, {191, 207, 247}, \
    { 24,  26,  31}, { 24,  26,  31}, { 75,  81, 153}, {115, 124, 248}, \
    {114, 123, 247}, {114, 123, 247}, {115, 124, 248}, {114, 123, 247}, \
    {115, 124, 248}, {114, 123, 247}, {114, 123, 247}, {115, 124, 248}, \
    {114, 123, 247}, {114, 123, 247}, { 59,  98, 185}, { 24,  88, 136}, \
    { 52, 108, 150}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  1,   1,  79}, { 45,  49, 153}, {103, 111, 247}, {103, 112, 247}, \
    { 23,  87, 135}, { 23,  87, 135}, {118, 155, 198}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, { 84,  90, 108}, {191, 207, 247}, {191, 207, 247}, \
    {192, 208, 248}, {191, 207, 247}, {191, 207, 247}, {192, 208, 248}, \
    {191, 207, 247}, {191, 207, 247}, {192, 208, 248}, {191, 207, 247}, \
    {192, 208, 248}, {191, 207, 247}, {191, 207, 247}, {192, 208, 248}, \
    {191, 207, 247}, {192, 208, 248}, { 97, 140, 184}, { 24,  88, 136}, \
    { 52, 108, 150}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  0,   0,  80}, { 45,  49, 153}, {104, 112, 248}, {104, 112, 248}, \
    { 24,  88, 136}, { 24,  88, 136}, {118, 155, 198}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, { 84,  90, 108}, {192, 208, 248}, {192, 208, 248}, \
    {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, \
    {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, \
    {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, {192, 208, 248}, \
    {192, 208, 248}, {192, 208, 248}, { 97, 140, 184}, { 24,  88, 136}, \
    { 52, 108, 150}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  1,   1,  79}, { 75,  81, 153}, {180, 195, 247}, {180, 195, 247}, \
    { 23,  87, 135}, { 23,  87, 135}, {118, 155, 198}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, { 79,  85, 189}, \
    { 90,  97, 216}, {135, 146, 230}, {191, 207, 247}, {191, 207, 247}, \
    { 23,  25,  30}, { 23,  25,  30}, {118, 128, 153}, {192, 208, 248}, \
    {170, 185, 220}, { 23,  25,  30}, { 23,  25,  30}, {170, 185, 220}, \
    {192, 208, 248}, {127, 162, 205}, { 44, 102, 149}, { 44, 102, 149}, \
    { 44, 102, 149}, { 44, 102, 149}, {152, 181, 204}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, { 32,  32, 101}, \
    {  0,   0,  80}, { 84,  91, 153}, {192, 208, 248}, {192, 208, 248}, \
    { 24,  88, 136}, { 24,  88, 136}, {118, 155, 198}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, { 90,  97, 216}, \
    {104, 112, 248}, {142, 154, 248}, {192, 208, 248}, {192, 208, 248}, \
    {  0,   0,   0}, {  0,   0,   0}, {108, 117, 139}, {192, 208, 248}, \
    {167, 181, 216}, {  0,   0,   0}, {  0,   0,   0}, {168, 182, 217}, \
    {192, 208, 248}, {118, 155, 198}, { 24,  88, 136}, { 24,  88, 136}, \
    { 24,  88, 136}, { 24,  88, 136}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {116, 116, 160}, {107, 111, 161}, {107, 116, 174}, {107, 116, 174}, \
    { 97, 140, 184}, { 97, 140, 184}, {103, 127, 159}, {108, 117, 139}, \
    { 94, 102, 122}, {  0,   0,   0}, {  0,   0,   0}, { 51,  55, 122}, \
    { 58,  62, 139}, {100, 108, 186}, {153, 165, 247}, {153, 165, 247}, \
    {  0,   0,   0}, {  0,   0,   0}, { 86,  93, 139}, {153, 165, 248}, \
    {134, 145, 216}, {  0,   0,   0}, {  0,   0,   0}, {134, 145, 216}, \
    {153, 165, 248}, {138, 162, 220}, {136, 166, 197}, {125, 161, 188}, \
    {125, 161, 188}, {125, 161, 188}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  1,   1,  79}, {  0,   0,  80}, \
    {191, 207, 247}, {191, 207, 247}, { 84,  90, 108}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, { 45,  48, 108}, {103, 111, 247}, {103, 111, 247}, \
    {  0,   0,   0}, {  0,   0,   0}, { 58,  62, 139}, {104, 112, 248}, \
    { 90,  97, 216}, {  0,   0,   0}, {  0,   0,   0}, { 90,  97, 216}, \
    {104, 112, 248}, {168, 175, 242}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  0,   0,  80}, {  0,   0,  80}, \
    {191, 207, 248}, {191, 207, 248}, { 84,  90, 108}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, { 45,  48, 108}, {103, 111, 247}, {103, 111, 247}, \
    {  0,   0,   0}, {  0,   0,   0}, { 58,  62, 139}, {104, 112, 248}, \
    { 90,  97, 216}, {  0,   0,   0}, {  0,   0,   0}, { 90,  97, 216}, \
    {104, 112, 248}, {157, 161, 221}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  1,   1,  79}, {  0,   0,  80}, \
    { 95,  39, 175}, { 95,  39, 175}, { 95,  39, 175}, { 96,  40, 176}, \
    { 95,  39, 175}, { 95,  39, 175}, { 96,  40, 176}, { 11,   4,  21}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    { 32,  32,  32}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  1,   1,  79}, {  0,   0,  80}, \
    { 95,  39, 175}, { 95,  39, 175}, { 95,  39, 175}, { 96,  40, 176}, \
    { 95,  39, 175}, { 95,  39, 175}, { 96,  40, 176}, { 11,   4,  21}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    { 32,  32,  32}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 41,  17, 121}, { 41,  17, 121}, { 72,  30, 152}, { 96,  40, 176}, \
    { 96,  40, 176}, {105,  53, 216}, {105,  53, 216}, { 60,  26, 113}, \
    { 54,  22,  99}, { 54,  22,  99}, { 54,  22,  99}, { 54,  22,  99}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, { 81,  81,  81}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {  1,   1,  79}, {  1,   1,  79}, { 53,  22, 133}, { 96,  40, 176}, \
    { 97,  42, 184}, {112,  64, 248}, {112,  64, 248}, { 97,  42, 184}, \
    { 95,  39, 175}, { 96,  40, 176}, { 95,  39, 175}, { 95,  39, 175}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, {  0,   0,   0}, \
    {  0,   0,   0}, {  0,   0,   0}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    { 32,  32, 101}, { 32,  32, 101}, { 59,  32, 134}, { 83,  34, 164}, \
    { 87,  38, 174}, {111,  63, 247}, {112,  64, 248}, { 99,  45, 192}, \
    { 97,  42, 184}, { 96,  40, 176}, { 96,  40, 176}, { 95,  39, 175}, \
    { 11,   4,  21}, { 11,   4,  21}, { 13,  14,  31}, {  5,  20,  31}, \
    {  5,  20,  31}, { 13,  26,  30}, { 13,  26,  30}, { 24,  26,  31}, \
    { 32,  32,  32}, { 17,  17,  21}, {  1,   6,   9}, {  1,   6,   9}, \
    { 32,  32,  32}, { 32,  32,  32}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {116, 116, 160}, {  0,   0,  80}, \
    { 14,   8, 101}, {112,  64, 248}, {112,  64, 248}, {112,  64, 248}, \
    {112,  64, 248}, {105,  53, 216}, { 96,  40, 176}, { 96,  40, 176}, \
    { 96,  40, 176}, { 95,  39, 175}, { 73, 107, 198}, { 56, 160, 216}, \
    { 62, 166, 219}, {112, 216, 248}, {112, 216, 248}, {231, 244, 248}, \
    {248, 248, 248}, {139, 139, 174}, {  0,   0,  80}, {  0,   0,  80}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {112, 112, 156}, {  0,   0,  80}, \
    { 14,   8, 101}, {111,  63, 247}, {112,  64, 248}, {111,  63, 247}, \
    {111,  63, 247}, {105,  53, 216}, { 95,  39, 175}, { 95,  39, 175}, \
    { 96,  40, 176}, { 95,  39, 175}, { 73, 107, 198}, { 56, 160, 216}, \
    { 62, 166, 219}, {111, 215, 247}, {112, 216, 248}, {231, 244, 248}, \
    {248, 248, 248}, {139, 139, 174}, {  1,   1,  79}, {  0,   0,  80}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, { 13,   7, 100}, { 13,   7, 100}, { 13,   7, 100}, \
    { 13,   7, 100}, { 56,  31, 161}, {109,  60, 238}, {109,  60, 238}, \
    {109,  60, 238}, {109,  60, 238}, {107,  69, 241}, {105,  75, 244}, \
    {105,  93, 244}, {111, 215, 247}, {112, 216, 248}, {126, 103, 247}, \
    {128,  86, 248}, { 72,  48, 174}, {  1,   1,  79}, {  0,   0,  80}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {  0,   0,  80}, {  0,   0,  80}, {  0,   0,  80}, \
    {  0,   0,  80}, { 49,  28, 153}, {112,  64, 248}, {112,  64, 248}, \
    {112,  64, 248}, {112,  64, 248}, {112,  64, 248}, {112,  64, 248}, \
    {112,  82, 248}, {112, 216, 248}, {112, 216, 248}, {112,  82, 248}, \
    {112,  64, 248}, { 62,  35, 174}, {  0,   0,  80}, {  0,   0,  80}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {112, 112, 156}, {112, 112, 156}, {112, 112, 156}, \
    {116, 116, 160}, { 88,  77, 161}, { 62,  35, 174}, { 62,  35, 174}, \
    { 62,  35, 174}, { 62,  35, 174}, { 62,  35, 174}, { 62,  35, 174}, \
    { 62,  46, 174}, { 62, 121, 174}, { 62, 121, 174}, { 62,  46, 174}, \
    { 62,  35, 174}, { 82,  67, 163}, {116, 116, 160}, {112, 112, 156}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  1,   1,  79}, {  1,   1,  79}, \
    {  0,   0,  80}, {  1,   1,  79}, {  1,   1,  79}, {  0,   0,  80}, \
    {  1,   1,  79}, {  1,   1,  79}, {  0,   0,  80}, {  1,   1,  79}, \
    {  0,   0,  80}, {116, 116, 160}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {  1,   1,  79}, {  1,   1,  79}, \
    {  0,   0,  80}, {  1,   1,  79}, {  1,   1,  79}, {  0,   0,  80}, \
    {  1,   1,  79}, {  1,   1,  79}, {  0,   0,  80}, {  1,   1,  79}, \
    {  0,   0,  80}, {112, 112, 156}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
    {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, {255, 255, 255}, \
  };

  
  /* Creer un fichier (nom specifie dans la chaine nomFichier) contenant l'entete du format BMP */

  /* Rouvrir le fichier en ecriture pour y ajouter les valeurs RGB des pixels */
 
  /* Fermer le fichier */

  return 0;

}





void creerFichierAvecEnteteBMP(const char nomFic[], unsigned int largeur, unsigned int hauteur)
{
  FILE * fic = fopen(nomFic, "wb");

  unsigned int monInt;
  unsigned short monShort;
  unsigned int padding;
 
  char format[] = {'B', 'M'};
  unsigned int tailleFic = 54 + largeur*hauteur*3;

  
  fwrite(format, 1, 2, fic);

  /* size of the file in bytes */
  fwrite(&tailleFic, 4, 1, fic);

  /* Unused, app specific */
  monShort = 0;
  fwrite(&monShort, 2, 1, fic);
  fwrite(&monShort, 2, 1, fic);

  /* Offset for pixel data */
  monInt = 54;
  fwrite(&monInt, 4, 1, fic);

  /* Nb of bytes in the header from this point */
  monInt = 40;
  fwrite(&monInt, 4, 1, fic);

  fwrite(&largeur, 4, 1, fic);
  fwrite(&hauteur, 4, 1, fic);

  /* Nb of color planes (always 1) */
  monShort = 1;
  fwrite(&monShort, 2, 1, fic);

  /* Nb of bits per pixel */
  monShort = 24;
  fwrite(&monShort, 2, 1, fic);
  
  /* Compression mode */
  monInt = 0;
  fwrite(&monInt, 4, 1, fic);


  /* Size of the raw BMP data (after this header), including padding */
  if( (3*largeur)%4 == 0) padding = 0;
  else padding = 4 - ((3*largeur)%4);
  monInt = (largeur*3 + padding)*hauteur;
  fwrite(&monInt, 4, 1, fic);


  /* Horiz and vertic resolutions (pixel per metre) */
  monInt = 2835;
  fwrite(&monInt, 4, 1, fic);
  fwrite(&monInt, 4, 1, fic);


  /* Numbers of colors in the palette & number of important colors */ 
  monInt = 0;
  fwrite(&monInt, 4, 1, fic);
  fwrite(&monInt, 4, 1, fic);

  fclose(fic);

}
